from flask import Blueprint
from flask_restful import Api

from app.view import CommonApi

sys = Blueprint('sys',__name__)
sys_api = CommonApi(sys)
from . import views,errors



#sys_api.add_resource(views.User2Api,"/users2/" )
#sys_api.register_resource(views.User2Api,"/users2/" )
sys_api.register_resource(views.UserResource, url='/user/', endpoint='users', pk='id')
sys_api.register_resource(views.GroupResource, url='/group/', endpoint='groups', pk='id')



